function searchAllApp() {
    axios({
        method: 'post',
        url: searchAppUrl,
        data: {}
    }).then(response => {
        let data = response.data;
        if (data.success) {
            // 查询、新增、修改
            let arr = getAppArr(data.data.apps);
            appendOptions("appSearch", arr);
            appendOptions("appAdd", arr);
        } else {
            alert(data.message);
        }
    })
}

function getAppArr(array) {
    let arr = new Array();
    for (let i = 0; i < array.length; i++) {
        let json = array[i];
        arr[i] = {}
        arr[i].value = json.id;
        arr[i].text = json.name;
    }
    return arr;
}
